package fy.uap.bean;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class ProviderImportFormBean {

	private String applicationTime;

	private String providerIsExist;

	private String option;

	private String providerName;

	private String providerCode;

	private String number;

	private String applicationDate;

	private String reason;
	private String similarSuppliers;
	private String address;
	private String linkman;
	private String supplyCycle;
	private String supplyCompany;
	private String cvenbank;
	private String supplyAddress;
	private String tel;
	private String cpurbillcode;
	private String bankAccount;
	private String taxRegister;
	private String fax;
	private String couttype;
	private String cmoneytype;
	private String qualitySystem;
	private String postCode;
	private String companyType;
	private String ccuspaycond;

	private String property;
	private String email;
	private String ccontent;
	private String bankAccountName;
	private String bankCode;
	
	private String qylb;
	private String zczj;
	private String clsj;
	private String zgrs;
	private String jycs;
	private String frdb;
	private String frdbsfz;
	private String nxse;
	

	private List<String> supplyRangeList;

	private Map<String, String> supplyRangeMap;

	private List<String> companyIDList;
	private List<String> companyList;
	private String memberCode;

	private String cVenBankMemo;

	private List<ApptitudeBean> apptitudeList;

	private String cvenfygl;

	public String getCvenfygl() {
		return cvenfygl;
	}

	public void setCvenfygl(String cvenfygl) {
		this.cvenfygl = "是".equals(cvenfygl) ? "Y"
				: ("否".equals(cvenfygl) ? "N" : cvenfygl);
	}

	public List<ApptitudeBean> getApptitudeList() {
		return apptitudeList;
	}

	public void setApptitudeList(ApptitudeBean apptitude) {
		if (this.apptitudeList == null) {
			this.apptitudeList = new ArrayList<ApptitudeBean>();
		}
		this.apptitudeList.add(apptitude);
	}

	public String getBankAccountName() {
		return bankAccountName;
	}

	public void setBankAccountName(String bankAccountName) {
		this.bankAccountName = bankAccountName;
	}

	public String getBankCode() {
		return bankCode;
	}

	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}

	public String getcVenBankMemo() {
		return cVenBankMemo;
	}

	public void setcVenBankMemo(String cVenBankMemo) {
		this.cVenBankMemo = cVenBankMemo;
	}

	public void setSupplyRangeMap(String key, String name) {
		if (supplyRangeMap == null) {
			supplyRangeMap = new java.util.Hashtable<String, String>();
		}
		supplyRangeMap.put(key, name);
	}

	public String getSupplyRangeName(String key) {
		return supplyRangeMap.get(key);
	}

	public String getMemberCode() {
		return memberCode;
	}

	public void setMemberCode(String memberCode) {
		this.memberCode = memberCode;
	}

	public List<String> getCompanyIDList() {
		return companyIDList;
	}

	public void setCompanyIDList(List<String> companyIDList) {
		this.companyIDList = companyIDList;
	}

	public String getApplicationDate() {
		return applicationDate;
	}

	public void setApplicationDate(String applicationDate) {
		this.applicationDate = applicationDate;
	}

	public String getProviderIsExist() {
		return providerIsExist;
	}

	public void setProviderIsExist(String providerIsExist) {
		this.providerIsExist = providerIsExist;
	}

	public String getProviderCode() {
		return providerCode;
	}

	public void setProviderCode(String providerCode) {
		this.providerCode = providerCode;
	}

	public String getApplicationTime() {
		return applicationTime;
	}

	public void setApplicationTime(String applicationTime) {
		this.applicationTime = applicationTime;
	}

	public String getProviderName() {
		return providerName;
	}

	public void setProviderName(String providerName) {
		this.providerName = providerName;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getSimilarSuppliers() {
		return similarSuppliers;
	}

	public void setSimilarSuppliers(String similarSuppliers) {
		this.similarSuppliers = similarSuppliers;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getLinkman() {
		return linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}

	public String getSupplyCycle() {
		return supplyCycle;
	}

	public void setSupplyCycle(String supplyCycle) {
		this.supplyCycle = supplyCycle;
	}

	public String getCvenbank() {
		return cvenbank;
	}

	public void setCvenbank(String cvenbank) {
		this.cvenbank = cvenbank;
	}

	public String getSupplyAddress() {
		return supplyAddress;
	}

	public void setSupplyAddress(String supplyAddress) {
		this.supplyAddress = supplyAddress;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getCpurbillcode() {
		return cpurbillcode;
	}

	public void setCpurbillcode(String cpurbillcode) {
		this.cpurbillcode = cpurbillcode;
	}

	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	public String getTaxRegister() {
		return taxRegister;
	}

	public void setTaxRegister(String taxRegister) {
		this.taxRegister = taxRegister;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getCouttype() {
		return couttype;
	}

	public void setCouttype(String couttype) {
		this.couttype = couttype;
	}

	public String getCmoneytype() {
		return cmoneytype;
	}

	public void setCmoneytype(String cmoneytype) {
		this.cmoneytype = cmoneytype;
	}

	public String getQualitySystem() {
		return qualitySystem;
	}

	public void setQualitySystem(String qualitySystem) {
		this.qualitySystem = qualitySystem;
	}

	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public String getCompanyType() {
		return companyType;
	}

	public void setCompanyType(String companyType) {
		this.companyType = companyType;
	}

	public String getCcuspaycond() {
		return ccuspaycond;
	}

	public void setCcuspaycond(String ccuspaycond) {
		this.ccuspaycond = ccuspaycond;
	}

	public String getProperty() {
		return property;
	}

	public void setProperty(String property) {
		this.property = property;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCcontent() {
		return ccontent;
	}

	public void setCcontent(String ccontent) {
		this.ccontent = ccontent;
	}

	public List<String> getSupplyRangeList() {
		return supplyRangeList;
	}

	public void setSupplyRangeList(List<String> supplyRangeList) {
		this.supplyRangeList = supplyRangeList;
	}

	public boolean addSupplyRange(String supplyRange) {
		if (this.supplyRangeList == null) {
			this.supplyRangeList = new ArrayList<String>();
			this.supplyRangeList.add(supplyRange);
			return true;
		} else if (this.supplyRangeList.indexOf(supplyRange) == -1) {
			this.supplyRangeList.add(supplyRange);
			return true;
		}
		return false;
	}
	
	
	public List<String> getcompanyList() {
		return this.companyList;
	}

	public void setcompanyList(List<String> companyList) {
		this.companyList = companyList;
	}
	


	public String getOption() {
		return option;
	}

	public void setOption(String option) {
		this.option = option;
	}

	@SuppressWarnings("rawtypes")
	public String printFields() {
		StringBuilder sb = new StringBuilder();

		Field[] fields = this.getClass().getDeclaredFields();

		if (fields != null) {
			try {
				for (int i = 0, length = fields.length; i < length; i++) {
					sb.append(fields[i].getName()).append(":");

					if (fields[i].get(this) instanceof List) {
						List list = (List) fields[i].get(this);
						if (list != null) {
							for (int m = 0; m < list.size(); m++) {
								sb.append("<").append(list.get(m)).append(">");
							}
							sb.append("\n");
						}
					} else {
						sb.append(fields[i].get(this)).append("\n");
					}
				}
			} catch (Exception e) {
				e.printStackTrace();
			}

		}

		System.out.println(sb.toString());
		return sb.toString();
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}
	
	public String getQylb() {
		return qylb;
	}

	public void setQylb(String qylb) {
		this.qylb = qylb;
	}

	public String getZczj() {
		return zczj;
	}

	public void setZczj(String zczj) {
		this.zczj = zczj;
	}

	public String getClsj() {
		return clsj;
	}

	public void setClsj(String clsj) {
		this.clsj = clsj;
	}

	public String getZgrs() {
		return zgrs;
	}

	public void setZgrs(String zgrs) {
		this.zgrs = zgrs;
	}

	public String getJycs() {
		return jycs;
	}

	public void setJycs(String jycs) {
		this.jycs = jycs;
	}

	public String getFrdb() {
		return frdb;
	}

	public void setFrdb(String frdb) {
		this.frdb = frdb;
	}

	public String getFrdbsfz() {
		return frdbsfz;
	}

	public void setFrdbsfz(String frdbsfz) {
		this.frdbsfz = frdbsfz;
	}

	public String getNxse() {
		return nxse;
	}

	public void setNxse(String nxse) {
		this.nxse = nxse;
	}

	public String getSupplyCompany() {
		return supplyCompany;
	}

	public void setSupplyCompany(String supplyCompany) {
		this.supplyCompany = supplyCompany;
	}
}
